var require, define;
! function(e) {
	function r(e, r) {
		function t() {
			clearTimeout(a)
		}
		if (!(e in u)) {
			u[e] = !0;
			var i = document.createElement("script");
			if (r) {
				var a = setTimeout(r, require.timeout);
				i.onerror = function() {
					clearTimeout(a), r()
				}, "onload" in i ? i.onload = t : i.onreadystatechange = function() {
					("loaded" == this.readyState || "complete" == this.readyState) && t()
				}
			}
			return i.type = "text/javascript", i.src = e, n.appendChild(i), i
		}
	}

	function t(e, t, n) {
		var a = i[e] || (i[e] = []);
		a.push(t);
		var o, u = s[e] || s[e + ".js"] || {},
			l = u.pkg;
		o = l ? c[l].url : u.url || e, r(o, n && function() {
			n(e)
		})
	}
	if (!require) {
		var n = document.getElementsByTagName("head")[0],
			i = {},
			a = {},
			o = {},
			u = {},
			s = {},
			c = {};
		define = function(e, r) {
			e = e.replace(/\.js$/i, ""), a[e] = r;
			var t = i[e];
			if (t) {
				for (var n = 0, o = t.length; o > n; n++) t[n]();
				delete i[e]
			}
		}, require.async = function(r, n, i) {
			function o(e) {
				for (var r = 0, n = e.length; n > r; r++) {
					var f = require.alias(e[r]);
					if (f in a) {
						var p = s[f] || s[f + ".js"];
						p && "deps" in p && o(p.deps)
					} else if (!(f in c)) {
						c[f] = !0, l++, t(f, u, i);
						var p = s[f] || s[f + ".js"];
						p && "deps" in p && o(p.deps)
					}
				}
			}

			function u() {
				if (0 == l--) {
					for (var t = [], i = 0, a = r.length; a > i; i++) t[i] = require(r[i]);
					n && n.apply(e, t)
				}
			}
			"string" == typeof r && (r = [r]);
			var c = {},
				l = 0;
			o(r), u()
		}, require.resourceMap = function(e) {
			var r, t;
			t = e.res;
			for (r in t) t.hasOwnProperty(r) && (s[r] = t[r]);
			t = e.pkg;
			for (r in t) t.hasOwnProperty(r) && (c[r] = t[r])
		}, require.loadJs = function(e) {
			r(e)
		}, require.loadCss = function(e) {
			if (e.content) {
				var r = document.createElement("style");
				r.type = "text/css", r.styleSheet ? r.styleSheet.cssText = e.content : r.innerHTML = e.content, n
					.appendChild(r)
			} else if (e.url) {
				var t = document.createElement("link");
				t.href = e.url, t.rel = "stylesheet", t.type = "text/css", n.appendChild(t)
			}
		}, require.alias = function(e) {
			return e.replace(/\.js$/i, "")
		}, require.timeout = 5e3
	}
}(this);
